<?php

use yii\db\Schema;
use yii\db\Migration;

class m160330_092606_extend_show_and_click_monitor_url_length extends Migration
{
    public function up()
    {
        $this->alterColumn('{{%creative}}', 'click_monitor_url', "varchar(4096) not null default '' comment '点击监测url'");
        $this->alterColumn('{{%creative}}', 'show_monitor_url', "varchar(4096) not null default '' comment '曝光监测url'");
    }

    public function down()
    {
        return true;
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
